import numpy as np

#--------------------------------------------------------------------------
#MAIN

if __name__ == "__main__":
    # 5.1
    a = np.array([[1,4],[2,6],[3,8]])
    b = np.array([[1,3],[1,4],[2,5]])
    c = np.array([[3,8,1],[5,4,0]])

    # 5.5
    x = np.array([4,1,2,3,3,4])
    y = np.array([16,5,10,15,13,22])
    x = np.transpose(x)
    y = np.transpose(y)
    print np.dot(np.transpose(x), y)